package com.dbuil.bleshoes.ui.activity;

import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.blankj.utilcode.util.ActivityUtils;
import com.dbuil.bleshoes.R;
import com.dbuil.bleshoes.utils.banner.XBannerUtils;
import com.stx.xhb.androidx.XBanner;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class GuideActivity extends AppCompatActivity {

    @BindView(R.id.guide_banner)
    XBanner guideBanner;
    @BindView(R.id.btn_enter)
    Button btnEnter;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.requestWindowFeature(Window.FEATURE_NO_TITLE);
        this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setContentView(R.layout.activity_guide);
        ButterKnife.bind(this);
        XBannerUtils.initGuideBanner(guideBanner, btnEnter);
    }

    @OnClick(R.id.btn_enter)
    public void onViewClicked() {
        ActivityUtils.startActivity(ShareTestActivity.class);
    }
}
